package com.cbts.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * DepartmentCopy entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "department_copy", catalog = "cbts", uniqueConstraints = @UniqueConstraint(columnNames = "departmentName"))
public class DepartmentCopy implements java.io.Serializable {

	// Fields

	private String departmentId;
	private String departmentName;

	// Constructors

	/** default constructor */
	public DepartmentCopy() {
	}

	/** full constructor */
	public DepartmentCopy(String departmentId, String departmentName) {
		this.departmentId = departmentId;
		this.departmentName = departmentName;
	}

	// Property accessors
	@Id
	@Column(name = "departmentId", unique = true, nullable = false, length = 11)
	public String getDepartmentId() {
		return this.departmentId;
	}

	public void setDepartmentId(String departmentId) {
		this.departmentId = departmentId;
	}

	@Column(name = "departmentName", unique = true, nullable = false, length = 45)
	public String getDepartmentName() {
		return this.departmentName;
	}

	public void setDepartmentName(String departmentName) {
		this.departmentName = departmentName;
	}

}